/**
 * 
 */
package com.kahweh.ngphoto.bean;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

/**
 * @author kahweh
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Visitor {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	@Persistent
	private String email;
	@Persistent
	private boolean verified;
	@Persistent
	private boolean subscribed;
	@Persistent
	private Date signInDate;
	@Persistent
	private long visitedTimes;
	
	/**
	 * 
	 */
	public Visitor() {
		// TODO Auto-generated constructor stub
	}

	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public boolean isVerified() {
		return verified;
	}

	public void setVerified(boolean verified) {
		this.verified = verified;
	}

	public boolean isSubscribed() {
		return subscribed;
	}

	public void setSubscribed(boolean subscribed) {
		this.subscribed = subscribed;
	}

	public Date getSignInDate() {
		return signInDate;
	}

	public void setSignInDate(Date signInDate) {
		this.signInDate = signInDate;
	}

	public long getVisitedTimes() {
		return visitedTimes;
	}

	public void setVisitedTimes(long visitedTimes) {
		this.visitedTimes = visitedTimes;
	}

}
